package thread;

public class ThreadDemo15 {
    public static void main(String[] args) {
        Thread thread = new Thread(()->{
            Thread t = Thread.currentThread();//Thread.currentThread(获取当前线程引用)
            System.out.println(t.getName());
        });
        Thread thread2 = new Thread(()->{
            Thread t = Thread.currentThread();
            System.out.println(t.getName());
        });
        thread.start();
        thread2.start();
    }
}
